import {createApp} from 'vue'
import App from './App.vue'
import router from "@/router";
import store from "@/store";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import * as ElIcons from '@element-plus/icons'
import axios from 'axios'
import VueAxios from 'vue-axios'
import requestUtils from "@/utils/requestUtils";

const app = createApp(App)
Object.keys(ElIcons).forEach(key => {
	app.component(key, ElIcons[key])
})
app.use(VueAxios, axios)
//全局配置
app.config.globalProperties.$http=axios
// app.config.globalProperties.$utils=requestUtils
app.use(router)
app.use(store)
app.use(ElementPlus, {locale})
app.mount('#app')
